<?php
namespace Home\Controller;
/**
 * 放款和退款操作
 * User: linkwhy
 * Date: 2015/11/4
 * Time: 16:18
 */
class ConfirmRefundController extends HomeController{

    const SSECRET="aaa123456";

    /**
     * 放款 确认订单完成操作
     */
    public function makeMoney($order_id, $seller_id){
        //参数　order_id：商城提交时的订单id
        //      seller_id:商城点商店铺id
        $arr=array('order_id'=>"$order_id","seller_id"=>"$seller_id");

        ksort($arr);
        $str="";
        foreach($arr as $k=>$v){

            $str.=$k.$v;

        }
        //echo $str;
        $sign=md5($str.SSECRET);
        $arr['sign']=$sign;

        //echo $str."aaa123456";
        //http://120.25.151.137 测试服
        //182.92.31.222/ 正式服
        //返回1代表成功　０代表失败
        return apiPost("http://120.25.151.137/server/index.php?c=Order&a=completeOrderEShop",$arr);
    }


}